package spring.cloud.tasks.executor.executor.task.task_item_allot;

import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.apache.curator.framework.CuratorFramework;
import spring.cloud.tasks.common.task_item_allot.Executor;

@Slf4j
@Setter
@Getter
public class TaskItemAllotContentService {
    private CuratorFramework curatorFramework;

    public TaskItemAllotContentService(CuratorFramework curatorFramework) {
        this.curatorFramework = curatorFramework;
    }

    public Executor getExecutor(String executorId) throws Exception {
        //传入命名空间+执行器id调用接口，获取信息。在执行器启动之前需要配置，认证信息。
        return null;//
    }

}
